<?php
class ListingModel extends BaseModel {
	var $table  = 'listing';
	var $prikey = 'list_id';
	var $_name  = 'listing';
	var $_relation = array(
		'belong_to_brand' => array(
			'model' => 'brand',
			'type' => BELONGS_TO,
			'foreign_key' => 'brand_id',
			'reverse'       => 'has_listing'
		)
	);
}